package com.weipai.education.model;

import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotNull;

import java.math.BigDecimal;
import java.util.Date;
@Data
@Accessors(chain = true)
public class Purchase {
    private Integer id;

    private Integer receiveUserId;

    private Integer deliverUserId;

    private String purchaseNumber;

    private Integer status;

    private Date createTime;

    private Date updateTime;

    private Date deliveryTime;

    @NotNull(message = "采购订单金额不能为空")
    private BigDecimal purchaseMoney;

    @NotNull(message = "产品数量不能为空")
    private Integer productNumber;

    @NotNull(message = "产品id不能为空")
    private Integer productId;

    @NotNull(message = "收货地址不能为空")
    private Integer userAddressId;
    
    @NotNull(message = "收货实际地址不能为空")
    private String userAddress;

    @NotNull(message = "收货姓名不能为空")
    private String name;

    @NotNull(message = "收货电话不能为空")
    private String mobile;

    @NotNull(message = "产品价格不能为空")
    private BigDecimal productPrice;

    private String dhl;//快递公司

    private String expressNumber;//快递单

    private Integer isReturn;

    private Integer isExchage;
    
}